package com.zmn.oms.persistence.interfaces.work;

import com.zmn.oms.model.entity.work.OrderWorkRelation;
import org.apache.ibatis.annotations.Param;

/**
 * @author fubiao
 * @date 2022年03月22日 7:37
 */
public interface OrderWorkRelationDao {

    OrderWorkRelation findOrderWorkRelationByOrderIdAndWorkId(@Param("orderId") Long orderId, @Param("workId") Long workId, @Param("type") Integer type);

    Integer insertOrderWorkRelation(OrderWorkRelation workRelation);

    Integer deleteOrderWorkRelationByWorkIdAndType(@Param("orderId") Long orderId, @Param("workId") Long workId, @Param("type") Integer type);
}
